<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" lang="en-US">
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" lang="en-US">
<![endif]-->
<!--[if !(IE 7) | !(IE 8)  ]><!-->
<html lang="en-US">
<!--<![endif]-->


<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="shortcut icon" href="<?php echo Yii::app()->request->baseUrl; ?>/img/favicon0.png" type="image/png">
    <link rel="profile" href="http://gmpg.org/xfn/11">

    <!--[if lt IE 9]>
    <script src="http://wp.realia.byaviators.com/wp-content/themes/realia/assets/js/html5.js" type="text/javascript"></script>
    <![endif]-->


    <link rel="stylesheet" id="bootstrap-css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstra.css" type="text/css" media="all">
    <link rel="stylesheet" id="bootstrap-responsive-css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrb.css" type="text/css" media="all">
    <link rel="stylesheet" id="chosen-css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/chosen00.css" type="text/css" media="all">
    <link rel="stylesheet" id="font-css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/colorbox.css" type="text/css" media="all">
    <link rel="stylesheet" id="font-css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/css00001.css" type="text/css" media="all">
    <link rel="stylesheet" id="general_variant-css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/realia-b.css" type="text/css" media="all">
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery00.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-m.js"></script>




    <title><?php echo CHtml::encode($this->pageTitle); ?> Главная</title>

    <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css//language.css" type="text/css" media="all">
</head>

<body class="home page page-id-53 page-template page-template-page-properties-grid-php  header-dark color-blue pattern-none layout-wide ">

<div id="wrapper-outer">
<div id="wrapper">
<div id="wrapper-inner">
<div class="header-top-wrapper">
    <div class="header-top">
        <!-- HEADER -->
        <div id="header-wrapper">
            <div id="header">
                <div id="header-inner">
                    <div class="container">
                        <div class="navbar">
                            <div class="navbar-inner">
                                <div class="row">
                                    <div class="logo-wrapper span4">
                                        <a href="/" id="btn-nav">Toggle navigation</a>
                                        <div class="logo">
                                            <a href="/" title="Home">
                                                <img src="/img/logo0000.png" alt="Home">
                                            </a>
                                        </div><!-- /.logo -->

                                        <div class="site-name">
                                            <a href="/" title="Home" class="brand">
                                                Solfo Prop.
                                            </a>
                                        </div><!-- /.site-name -->

                                        <div class="site-slogan">
                                            <span>Houses for<br>Rent</span>
                                        </div><!-- /.site-slogan -->
                                    </div><!-- /.logo-wrapper -->

                                    <div class="info">
                                        <div class="site-email">
                                            <a href="mailto:rent@cyprus-house.ru">
                                                rent@cyprus-house.ru
                                            </a>
                                        </div><!-- /.site-email -->
                                        <div class="site-phone">
                                            <span>+3 (57) 99-546-107</span>
                                        </div><!-- /.site-phone -->
                                    </div><!-- /.info -->

                                    <a class="btn btn-primary btn-large list-your-property arrow-right" href="http://wp.realia.byaviators.com/my-properties/">
                                        <?php echo Yii::t('main', 'List your property') ?>
                                    </a>
                                </div><!-- /.row -->
                            </div><!-- /.navbar-inner -->
                        </div><!-- /.navbar -->
                    </div><!-- /.container -->
                </div><!-- /#header-inner -->
            </div><!-- /#header -->
        </div><!-- /#header-wrapper -->
    </div><!-- /.top -->
</div><!-- /.top-wrapper -->
<!-- NAVIGATION -->
<div id="navigation">
    <div class="container">
        <div class="navigation-wrapper">
            <div class="navigation clearfix-normal">
                <div class="menu-main-container">
                <?php $this->widget('zii.widgets.CMenu',array(
                    'items'=>array(
                        array('label'=>Yii::t('main', 'Home'), 'url'=>array('/site/index')),
                        array('label'=>Yii::t('main', 'Properties'), 'url'=>'/property','items'=>array(
                            array('label'=>Yii::t('main', 'Propety types'), 'url'=>array('/property'), 'items'=>array(
                                array('label'=>Yii::t('main', 'Apartment'), 'url'=>array('/property/filter/?filter_type=Apartment')),
                                array('label'=>Yii::t('main', 'Building Area'), 'url'=>array('/property/filter/?filter_type=Building Area')),
                                array('label'=>Yii::t('main', 'Condo'), 'url'=>array('/property/filter/?filter_type=Condo')),
                                array('label'=>Yii::t('main', 'Cottage'), 'url'=>array('/property/filter/?filter_type=Cottage')),
                                array('label'=>Yii::t('main', 'Family House'), 'url'=>array('/property/filter/?filter_type=Family House')),
                                array('label'=>Yii::t('main', 'Single Home'), 'url'=>array('/property/filter/?filter_type=Single Home')),
                                array('label'=>Yii::t('main', 'Villa'), 'url'=>array('/property/filter/?filter_type=Villa')),
                                ),'itemOptions'=>array('class'=>'menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menuparent menu-item-426')),
                            array('label'=>Yii::t('main', 'Contract types'), 'url'=>array('/property'), 'items'=>array(
                                array('label'=>Yii::t('main', 'Rent'), 'url'=>array('/property')),
                                array('label'=>Yii::t('main', 'Sale'), 'url'=>array('/property')),
                            ),'itemOptions'=>array('class'=>'menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menuparent menu-item-426')),
//                            array('label'=>Yii::t('main', 'Edit properties'), 'url'=>array('/housing'),'visible'=>Yii::app()->user->name=='admin'),
                            array('label'=>Yii::t('main', 'Edit properties'), 'url'=>array('/housing'),'visible'=>Yii::app()->user->checkAccess('admin')),
                        ),'itemOptions'=>array('class'=>'menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menuparent menu-item-78')),
                        array('label'=>Yii::t('main', 'About Cyprus'), 'url'=>array('/site/about')),
                        array('label'=>Yii::t('main', 'FAQ'), 'url'=>array('/site/faq')),
                        array('label'=>Yii::t('main', 'Contact'), 'url'=>array('/site/contact')),
                        array('label'=>Yii::t('main', 'Login'), 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
                        array('label'=>'Options ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest,'items'=>array(
                            array('label'=>Yii::t('main', 'Edit properties'), 'url'=>array('/housing'),'visible'=>Yii::app()->user->checkAccess('manager')),
                            array('label'=>Yii::t('main', 'Edit users'), 'url'=>array('/admin'),'visible'=>Yii::app()->user->checkAccess('moderator')),
                            array('label'=>Yii::t('main', 'Система управления CRM'), 'url'=>array('/crm'),'visible'=>Yii::app()->user->checkAccess('worker')),
                            array('label'=>Yii::t('main', 'Селект'), 'url'=>array('/admin/dropDown/'),'visible'=>Yii::app()->user->checkAccess('worker')),
                            array('label'=>Yii::t('main', 'Logout'), 'url'=>array('/site/logout'),'visible'=>!Yii::app()->user->isGuest),
                        ),'itemOptions'=>array('class'=>'menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menuparent menu-item-78')),
                    ),'htmlOptions'=>array('class'=>'nav'),'submenuHtmlOptions'=>array('class'=>'submenu')
                ));  ?>
            </div>

                <div id="icl_lang_sel_widget" class="widget icl_languages_selector"><div id="lang_sel">
                        <?php echo Controller::langWidget(); ?>
                    </div>
                </div>                                                                                                                </div><!-- /.navigation -->
        </div><!-- /.navigation-wrapper -->
    </div><!-- /.container -->
</div><!-- /.navigation -->

    <?php echo $content; ?>




<div id="footer-wrapper">
    <div id="footer-top">
        <div id="footer-top-inner" class="container">
            <div class="row">
                <div class="span3">
                    <div id="featuredproperties_widget-3" class="widget properties">

                        <h2><?php echo Yii::t('main', 'Featured') ?></h2>

                        <div class="content">
                            <?php
                            $rectntProperty=(Controller::recentPropertyes());
                            foreach ($rectntProperty as $property){
                                echo'
                            <div class="property">
                                <div class="image">
                                    <a href="/site/property/id/'.$property['id'].'"></a>
                                    <img src="/uploads/'.$property['id'].'/thumb_240/'.$property['image'].'" alt="3412 Cloudcroft Dr">
                                </div>
                                <div class="wrapper">
                                    <div class="title">
                                        <h3><a href="/site/property/id/'.$property['id'].'">
                                                '.$property['name_'.$this->currentLanguage].'
                                            </a></h3>
                                    </div>
                                    <div class="location">'.$property['location'].'</div>
                                    <div class="price">
                                        '.$property['price'].' €                                             </div>
                                </div>
                            </div>
                                ';
                            }
                            ?>
                        </div><!-- /.content -->
                    </div>                                </div>
                <div class="span3">
                    <div id="text-5" class="widget widget_text"><h2><?php echo Yii::t('main', 'Contact') ?></h2>			<div class="textwidget"><table class="contact">
                                <tbody>
                                <tr>
                                    <th class="address"><?php echo Yii::t('main', 'Address:') ?></th>
                                    <td>1900 Pico Blvd<br>Santa Monica, CA 90405<br>United States<br></td>
                                </tr>
                                <tr>
                                    <th class="phone"><?php echo Yii::t('main', 'Phone:') ?></th>
                                    <td> +3(57)99-546-107</td>
                                </tr>
                                <tr>
                                    <th class="email">E-mail:</th>
                                    <td><a href="mailto:rent@cyprus-house.ru">rent@cyprus-house.ru</a></td>
                                </tr>
                                <tr>
                                    <th class="skype">Skype:</th>
                                    <td>your.company</td>
                                </tr>
                                <tr>
                                    <th class="gps">GPS:</th>
                                    <td>34.016811<br>-118.469009</td>
                                </tr>
                                </tbody>
                            </table></div>
                    </div>                                </div>

                <div class="span3">
                    <div id="nav_menu-3" class="widget widget_nav_menu"><h2><?php echo Yii::t('main', 'Useful Links') ?></h2><div class="menu-useful-links-container"><ul id="menu-useful-links" class="menu"><li id="menu-item-403" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-403"><a href="http://wp.realia.byaviators.com/revolution-slider/">Revolution Slider</a></li>
                                <li id="menu-item-206" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-206"><a href="http://wp.realia.byaviators.com/fully-responsive/">Fully Responsive</a></li>
                                <li id="menu-item-209" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-209"><a href="http://wp.realia.byaviators.com/contact-us/"><?php echo Yii::t('main', 'Contact us') ?></a></li>
                                <li id="menu-item-207" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-207"><a href="http://wp.realia.byaviators.com/faq/">FAQ</a></li>
                                <li id="menu-item-211" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-211"><a href="http://wp.realia.byaviators.com/theme-customization-api/">Customization API</a></li>
                            </ul></div></div>                                </div>

                <div class="span3">
                    <div id="text-6" class="widget widget_text"><h2><?php echo Yii::t('main', 'Mail us') ?></h2>			<div class="textwidget"><div class="wpcf7" id="wpcf7-f28-o1">
                                <div class="screen-reader-response"></div>
                                <form action="http://wp.realia.byaviators.com/#wpcf7-f28-o1" method="post" class="wpcf7-form" novalidate="novalidate">
                                    <div class="control-group name">
                                        <div><label class="control-label"><?php echo Yii::t('main', 'Name') ?><span class="form-required" title="This field is required.">*</span></label></div>
                                        <div class="controls">
                                            <span class="wpcf7-form-control-wrap your-name"><input type="text" name="your-name" value size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false"></span>
                                        </div>
                                        <p><!-- /.controls -->
                                    </div>
                                    <p><!-- /.control-group -->
                                    <div class="control-group email">
                                        <div><label class="control-label"><?php echo Yii::t('main', 'Email') ?><span class="form-required" title="This field is required.">*</span></label></div>
                                        <div class="controls">
                                            <span class="wpcf7-form-control-wrap your-email"><input type="email" name="your-email" value size="40" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" aria-required="true" aria-invalid="false"></span>
                                        </div>
                                        <p><!-- /.controls -->
                                    </div>
                                    <p><!-- /.control-group --></p>
                                    <div class="control-group">
                                        <div><label class="control-label"><?php echo Yii::t('main', 'Message') ?><span class="form-required" title="This field is required.">*</span></label></div>
                                        <div class="controls">
                                            <span class="wpcf7-form-control-wrap your-message"><textarea name="your-message" cols="40" rows="10" class="wpcf7-form-control wpcf7-textarea" aria-invalid="false"></textarea></span>
                                        </div>
                                        <p><!-- /.controls -->
                                    </div>
                                    <p><!-- /.control-group --></p>
                                    <div class="form-actions">
                                        <input type="submit" class="btn btn-primary arrow-right" value="<?php echo Yii::t('main', 'Send') ?>">
                                    </div>
                                    <p><!-- /.form-actions --></p>
                                    <div class="wpcf7-response-output wpcf7-display-none"></div></form></div></div>
                    </div>                                </div>
            </div><!-- /.row -->
        </div><!-- /#footer-top-inner -->
    </div><!-- /#footer-top -->

    <div id="footer" class="footer container">
        <div id="footer-inner">
            <div class="row">
                <div class="span6 copyright">
                    <div id="text-4" class="widget widget_text">			<div class="textwidget"><p>© Copyright 2014 by <a href="http://fix.if.ua/">[WeB] corp.</a>. All rights reserved.</p></div>
                    </div>
                </div><!-- /.copyright -->

                <div class="span6 share">
                    <div class="content">
                        <ul class="menu nav">
                            <li class="first leaf">
                                <a href="http://www.facebook.com/" class="facebook">Facebook</a>
                            </li>
                            <li class="leaf"><a href="http://www.flickr.com/" class="flickr">Flickr</a></li>
                            <li class="leaf"><a href="http://plus.google.com/" class="google">Google+</a></li>
                            <li class="leaf"><a href="http://linkedin.com/" class="linkedin">LinkedIn</a></li>
                            <li class="leaf"><a href="http://www.twitter.com/" class="twitter">Twitter</a></li>
                            <li class="last leaf"><a href="http://vimeo.com/" class="vimeo">Vimeo</a></li>
                        </ul>
                    </div><!-- /.content -->
                </div><!-- /.span6 -->
            </div><!-- /.row -->
        </div><!-- /#footer-inner -->
    </div><!-- /#footer -->
</div><!-- /#footer-wrapper -->
</div><!-- /#wrapper-outer -->
</div><!-- /#wrapper -->

<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery04.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/js000001.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/gmap3000.js"></script>
<script type='text/javascript' src='<?php echo Yii::app()->request->baseUrl; ?>/js/bootstra.js'></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/retina00.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/gmap3001.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/chosen00.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/aviators.js"></script>
<script type='text/javascript' src='<?php echo Yii::app()->request->baseUrl; ?>/js/jquery05.js'></script>
<script type='text/javascript' src='<?php echo Yii::app()->request->baseUrl; ?>/js/jquery07.js'></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/carousel.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/realia00.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/comment-.js"></script>



</body>
</html>
